﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp12
{
    class Program
    {
        static void Main(string[] args)
        {
            IFootble fot = new Person();
            fot.Foot();
            Person person = new Person();
            person.eat();
            person.Foot();
            Animal animal = new Person();
            animal.eat();
            Console.ReadKey();

        }
    }
    public class Person:IFootble,Animal
    {
        public void eat()
        {
            Console.WriteLine("我会吃东西");
        }



        public void Foot()
        {
            Console.WriteLine("我会走路");
        }

        void Animal.eat()
        {
            Console.WriteLine("我是动物的“吃”");
        }
    }
    public interface IFootble
    {
        void Foot();
    }
    public interface Animal
    {
        void eat();
    }
}
